package cn.jhh.base.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class PageParams {

  /**当前页码默认值*/
  public static final long DEFAULT_PAGE_CURRENT = 1L;
  /**每页记录数默认值*/
  public static final long DEFAULT_PAGE_SIZE = 10L;

  @ApiModelProperty(value="当前页码",example = "1")
  private Long pageNo = DEFAULT_PAGE_CURRENT;
  @ApiModelProperty(value="每页记录数默认值",example = "10")
  private Long pageSize = DEFAULT_PAGE_SIZE;

  public PageParams(){

  }

  public PageParams(long pageNo,long pageSize){
   this.pageNo = pageNo;
   this.pageSize = pageSize;
  }
}
